package com.jk.service;

import com.jk.*;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.cloud.openfeign.SpringQueryMap;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.HashMap;
import java.util.List;
@FeignClient(value = "provider-movieinfo")
public interface MovieInfoService {
    //购票 影院信息回显
    @RequestMapping("lzyTicket/chooseByCinemaId")
    CinemaBean chooseByCinemaId(@RequestParam Integer cinemaId);
    //首页点击购票  展示影院详情
    @RequestMapping("lzyTicket/movieDetailsBy")
    MovieBean movieDetailsBy(@RequestParam Integer movieId);
    //购票 根据 市 查询 影院
    @GetMapping("lzyTicket/cinemaByCity")
    List<CinemaBean> cinemaByCity(@SpringQueryMap CinemaBean cinema);
    //根据影院查看电影
    @RequestMapping("lzyTicket/movieByCinema")
    MovieBean movieByCinema(@RequestParam Integer movieId);
    //影院电影放映 安排
    @GetMapping("lzyTicket/moviePlan")
    List<ProgramBean> moviePlan(@SpringQueryMap ProgramBean program);
    //选座 回显放映计划
    @RequestMapping("lzyTicket/programByprogramId")
    ProgramBean programByprogramId(@RequestParam Integer programId);
    // 座位描述
    @RequestMapping("lzyTicket/seatInfo")
    HashMap seatInfo(@RequestParam Integer programId);
    // 生成订单
    @RequestMapping("lzyTicket/createOrder")
    OrderBean createOrder(@RequestParam Integer programId, @RequestParam String state, @RequestParam Double orderPrice,UserBean user);
    // 限时支付 页面 订单描述
    @GetMapping("lzyTicket/orderInfoByOrder")
    OrderBean orderInfoByOrder(@SpringQueryMap OrderBean orderBean);
}
